//
//  HXDDUserEntity.m
//  ChatDemo-UI2.0
//
//  Created by romens on 15/6/17.
//  Copyright (c) 2015年 romens. All rights reserved.
//

#import "HXDDUserEntity.h"

@implementation HXDDUserEntity

-(instancetype)init
{
    self = [super init];
    if (self)
    {
    }
    return self;
}

- (BOOL)isEqual:(id)other
{
    if (other == self) {
        return YES;
    }else if([self class] != [other class])
    {
        return NO;
    }else {
        HXDDUserEntity *otherUser = (HXDDUserEntity *)other;
        if (![otherUser.guid isEqualToString:self.guid]) {
            return NO;
        }
        if (![otherUser.name isEqualToString:self.name]) {
            return NO;
        }
        if (![otherUser.nick isEqualToString:self.nick]) {
            return NO;
        }
    }
    return YES;
}



-(NSString *)getAvatarUrl
{
    return self.avatar;
}
-(NSString *)getAvatarPreImageUrl
{
    return [NSString stringWithFormat:@"%@_640×999.jpg",self.avatar];
}
@end
